package com.guli.acl.service;

import com.alibaba.fastjson.JSONObject;
import com.guli.acl.entity.Permission;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 权限 服务类
 * </p>
 *
 * @author ZhaoZhenyu
 * @since 2022-10-06
 */
public interface PermissionService extends IService<Permission> {
    List<Permission> queryAllMenu();
    void removeChildById(String id);
    void saveRolePermissionRelationShip(String roleId, String[] permissionIds);
    List<String> selectPermissionValueByUserId(String id);
    List<JSONObject> selectPermissionByUserId(String id);
    List<Permission> selectAllMenu(String roleId);
}
